package interfaceSample;

public class Dog implements Animal {

	private String name;
	
	public Dog(String name){
		this.name = name;
	}
	
	@Override
	public void makeNoise() {
		System.out.println("Arf..arf...arf");
	}

	@Override
	public String getName() {
		return name;
	}

}
